import services from '../createServices';

// 生产管理
export const produce = {
  list: (params) => services.post('/strategy-production/list', { params, isLoading: true }),
  offfline: (params) => services.post('/strategy-production/offline', { params, isLoading: true }), // 下线
  trend: (params) => services.post('/strategy-production/trend', { params, isLoading: true }), // 趋势图
  trendHitDetail: (params) => services.post('/strategy-production/trend-hit-detail', { params, isLoading: true }), // 趋势图
  versions: (params) => services.post('/strategy-production/versions', { params, isLoading: true }), // 历史版本
  challengeGroupInfo: (params) => services.post('/strategy-production/challenger-node-group-info', { params, isLoading: true }),
  challengeCompare: (params) => services.post('/strategy-production/challenger-risk-trend-compare', { params, isLoading: true }),
  publish: (params) => services.post('/strategy-production/reissue', { params, isLoading: true }), // 重新发布
  getPublishStrategy: (params) => services.post('/strategy-production/get-publish-strategy', { params, isLoading: true }), // 发布前判断是否有在线版本
  allVersions: (params) => services.post('/strategy-production/all-version', { params }), // 策略的发布版本
};